package org.jeecg.modules.business.doc.outbound.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.business.doc.outbound.entity.WmsOutReceiptLoadCheck;
import org.jeecg.modules.business.doc.outbound.entity.vo.OutboundReceiptLoadCheckFullVO;
import org.jeecg.modules.business.doc.outbound.entity.vo.OutboundReceiptLoadCheckVO;

import java.util.List;

/**
 * @Description: 出库单-装车复核
 * @Author: jeecg-boot
 * @Date:   2023-08-09
 * @Version: V1.0
 */
public interface WmsOutReceiptLoadCheckMapper extends BaseMapper<WmsOutReceiptLoadCheck> {

    /**
     * 查询所有未复核信息
     * @param receiptId
     * @param materialName
     * @param batchCode
     * @return
     */
    IPage<OutboundReceiptLoadCheckFullVO> listAllUnCheck(@Param("page") IPage<WmsOutReceiptLoadCheck> page,@Param("receiptId") String receiptId, @Param("materialName") String materialName, @Param("batchCode") String batchCode, @Param("carNumber") String carNumber);

    /**
     * 查询所有已复核信息
     * @param receiptId
     * @param materialName
     * @param batchCode
     * @return
     */
    IPage<OutboundReceiptLoadCheckVO> listAllChecked(@Param("page") IPage<WmsOutReceiptLoadCheck> page,@Param("receiptId")String receiptId, @Param("materialName")String materialName,@Param("batchCode") String batchCode);

    /**
     * 装车复核时扫码查询待装车复核物料
     * @param receiptId
     * @param code
     * @return
     */
    List<OutboundReceiptLoadCheckFullVO> listAllUnCheckByCode(@Param("receiptId")String receiptId, @Param("code")String code);
}
